const { Schema } = require('mongoose');
const mongoose = require('mongoose');
const ActicleSchema = new Schema(
    {
        acfunId:{type:String},
        content:{type:String},
        articleContentHtml:{type:String},
        createAt:{type:Number,default:Date.now().valueOf()},
        originCreateAt:Number|String,
        title:{type:String},
        tags:[
            {
                name:String,
                value:String,
                score:Number
            }
        ],
        coverUrl:{type:String,default:''},
    }
)

const ActicleModel = mongoose.model('article',ActicleSchema)

module.exports = {
    model:ActicleModel
}